package Pages;



import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;

/**
 * Created with IntelliJ IDEA.
 * User: Tanya
 * Date: 26.11.13
 * Time: 20:43
 * To change this template use File | Settings | File Templates.
 */
public class LoginPage {

    @FindBy(how= How.ID, using = "login_password")
    private WebElement passwordInput;


    @FindBy(how= How.ID, using = "login_username")
    private WebElement userNameInput;

    @FindBy(how=How.XPATH, using="//div[@class=' button']/a[text() = 'Login']")
    WebElement buttonLogin;

    @FindBy(how=How.XPATH, using="div[@class='drpdwnHandler' text()='Accounts']")
    WebElement accountsMenu;



    public void login(String userName, String password){
        userNameInput.sendKeys(userName);
        passwordInput.sendKeys(password);
        buttonLogin.click();

    }

    public void logout(){

    }



}
